<?php
if(!defined('ROOT')) die('缺少必需参数1.');
if(is_dir('_install')) die('安装目录仍存在, 安全起见, 请删除后再使用.');
if(!is_file(ROOT . '/_tmp/config.php')) die('未生成配置文件');

define('OBJ_PLATFORM', 'object_platform');
define('IS_DEBUG', 'is_debug');

include_once ROOT . '/_tmp/config.php';
include_once ROOT . '/../ujn2/ujn.php';

ujn_runtime::setSplitAlias('adam');

// 设置平台对象
require_once ROOT . '/platforms/interface/platform.php';
ujn_runtime::setParam(OBJ_PLATFORM, require_once ROOT . '/platforms/' . PLATFORM . '_api.php');